<template>
  <div>
    <el-form ref="ruleForm" class="elForm" label-position="right">
      <!--待扣费用-->
      <el-row :gutter="24">
        <el-col :span="8">
          <span >待扣费用</span>
        </el-col>
      </el-row>
      <!--未发起 已发起 提前还车-->
      <template v-if="typeBoole === 1">
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="违章费用:">
              <span> 222</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="车辆租金欠款金额:">
              <span>{{ ruleForm.vinNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="违约金:">
              <span>{{ ruleForm.contractReportNumber }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="车损:">
              <span>{{ ruleForm.procurementReportNumber }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="加速折旧费:">
              <span>{{ ruleForm.totalSumAmount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="超里程费:">
              <span>{{ ruleForm.modelName }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="24">
            <el-form-item label="其他扣款:">
              <span></span>
            </el-form-item>
          </el-col>
        </el-row>
      </template>

      <!--期满还车-退保证金-->
      <template v-if="typeBoole === 2">
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="违章费用:">
              <span> {{ ruleForm.carCount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="车辆租金欠款金额:">
              <span>{{ ruleForm.vinNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="车损:">
              <span>{{ ruleForm.contractReportNumber }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="加速折旧费:">
              <span>{{ ruleForm.totalSumAmount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="超里程费:">
              <span>{{ ruleForm.modelName }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="其他扣款:">
              <span>{{ ruleForm.procurementReportNumber }}</span>
            </el-form-item>
          </el-col>
        </el-row>

      </template>

      <!--租购还车-退保证金 -->
      <template v-if="typeBoole === 3">
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="违章费用:">
              <span> {{ ruleForm.carCount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="车辆租金欠款金额:">
              <span>{{ ruleForm.vinNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="尾款:">
              <span>{{ ruleForm.contractReportNumber }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="车损:">
              <span>{{ ruleForm.procurementReportNumber }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="加速折旧费:">
              <span>{{ ruleForm.totalSumAmount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="超里程费:">
              <span>{{ ruleForm.modelName }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="24">
            <el-form-item label="其他扣款:">
              <span></span>
            </el-form-item>
          </el-col>
        </el-row>
      </template>

      <!--事故还车-退保证金 -->
      <template v-if="typeBoole === 4">
        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="违章费用:">
              <span> {{ ruleForm.carCount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="车辆租金欠款金额:">
              <span>{{ ruleForm.vinNo }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="违约金:">
              <span>{{ ruleForm.contractReportNumber }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="8">
            <el-form-item label="客户理赔款:">
              <span>{{ ruleForm.procurementReportNumber }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="加速折旧费:">
              <span>{{ ruleForm.totalSumAmount }}</span>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="超里程费:">
              <span>{{ ruleForm.modelName }}</span>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="24">
            <el-form-item label="其他扣款:">
              <span></span>
            </el-form-item>
          </el-col>
        </el-row>
      </template>

      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item label="总计:" class="itemColor">
            <span>13000</span>
          </el-form-item>
        </el-col>
        <el-col :span="8" class="itemColor">
          <el-form-item label="已缴费:">
            <span>8000</span>
          </el-form-item>
        </el-col>
        <el-col :span="8" class="itemColor">
          <el-form-item label="剩余未缴纳:">
            <span>5000</span>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>

</template>

<script>

export default {
  name: 'withheldExpense',//待扣费用(未发起 已发起 提前还车)
  props: {
    ruleForm: {
      type: Object,
      default: {}
    },
    typeBoole: {
      type: Number,
      default: 1
    }
  },
  computed: {},
  watch: {},
  data() {
    return {};
  },
  created() {
  },
  mounted() {
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
@import "@/styles/cwgd/formScss.scss";

.itemColor {
  ::v-deep .el-form-item__label {
    color: red;
  }

  span {
    color: red;
  }
}
</style>


